"use strict";const r=require("electron");r.contextBridge.exposeInMainWorld("ipcRenderer",{on(...e){const[o,n]=e;return r.ipcRenderer.on(o,(i,...t)=>n(i,...t))},off(...e){const[o,...n]=e;return r.ipcRenderer.off(o,...n)},send(...e){const[o,...n]=e;return r.ipcRenderer.send(o,...n)},invoke(...e){const[o,...n]=e;return r.ipcRenderer.invoke(o,...n)}});r.contextBridge.exposeInMainWorld("electronAPI",{onFileContentReceived:e=>{r.ipcRenderer.on("file-content-received",(o,n)=>e(n))},notifyUploadCompleted:e=>{r.ipcRenderer.send("file-upload-completed",e)},notifyUploadFailed:e=>{r.ipcRenderer.send("file-upload-failed",e)}});
